﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LinqDemo
{
    internal class Employee
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public int? AddressId { get; set; }
        public List<string> Hobbies { get; set; }

        public int? DepartmentId { get; set; }


        public static List<Employee> GetAllEmployees()
        {
            return new List<Employee>()
            {
                new Employee { Id = 1, Name = "张三", AddressId = 1, Hobbies = new List<string>(){ "football","swim","basketball"}, DepartmentId=10},
                new Employee { Id = 2, Name = "李四", AddressId = 2, Hobbies = new List<string>(){ "football","pingpong","basketball"}, DepartmentId=20},
                new Employee { Id = 3, Name = "王五", AddressId = null, Hobbies = new List<string>(){ "read","swim","movie"}, DepartmentId=20},
                new Employee { Id = 4, Name = "钱六", AddressId = null, Hobbies = new List<string>(){ "sleep"}, DepartmentId=null},
                new Employee { Id = 5, Name = "郑七", AddressId = 5, Hobbies = new List<string>(){ "eat", "sing"}, DepartmentId=null},
                new Employee { Id = 6, Name = "苏八", AddressId = 6, Hobbies = new List < string >() { "coding", "wark" }, DepartmentId=10}
            };
        }
    }
}
